﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ClsController;
using ClsUtilities;

namespace Pro_Care_System
{
    public partial class Menu : Form
    {
        private ClsLogicaNeg logica;

        public Menu()
        {
            InitializeComponent();
            logica = new ClsLogicaNeg();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            //logica.CargarComboBox(TableStruct.TblInfo.AGENCY, TableStruct.AGENCY.AG_COD_AGENCY.ToString(), TableStruct.AGENCY.AG_NAME.ToString(), comboBox1);
        }

        private void Menu_Load(object sender, EventArgs e)
        {
            logica.CargaPantallaMenuGrid(dgvresumen);
        }

        private void btnrefresh_Click(object sender, EventArgs e)
        {
            logica.CargaPantallaMenuGrid(dgvresumen);
        }

        private void btnsave_Click(object sender, EventArgs e)
        {

            logica.ActualizaInfoCitas(dgvresumen);
            /*foreach (DataGridViewRow row in dgvresumen.Rows)
            { 
                row.ToString();
                //((DataRowView)row.DataBoundItem).Row.ItemArray
                //((DataRowView)row.DataBoundItem).Row.Table.Columns[0].ColumnName
            }*/
        }

        private void btnappointments_Click(object sender, EventArgs e)
        {
            logica.ManejoForm(this, new AddCitas());
        }




    }
}
